<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <style>
        body {
            background: #f2f2f2
        }

        .info {
            background: #fff;
            width: 100%;
            padding: 0 .6rem
        }

        .info-item {
            position: relative;
        }

        .info-item input {
            position: absolute;
            left: 3.3rem
        }

        .btn {
            margin: 1.2rem .6rem 0 .6rem;
            width: calc(100% - 1.2rem)
        }

        .dun {
            position: absolute;
            bottom: .6rem;
            left: 0;
            right: 0
        }
    </style>
</head>

<body>
    <div id="app">
        <section>
            <div class="font-14 text-color-3 info">
                <div class="height-50 flex-align-center info-item">
                    <div class="">
                        姓名
                    </div>
                    <input type="text" name="" value="" placeholder='真实名字'>
                </div>
                <div class="height-50 flex-align-center info-item">
                    <div class="">
                        身份证
                    </div>
                    <input type="text" name="" value="" placeholder='身份证号码'>
                </div>
            </div>
            <button class='red-btn btn' tapmode @click='toCertification'>提交认证</button>
        </section>
        <section>
            <div class="flex-center dun">
                <img src="../../image/merchant/dun.png" alt="" style="height:0.75rem;width:0.6rem;margin-right:.15rem">
                <span class="font-12 text-color-9">好获认证提现系统</span>
            </div>
        </section>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript " src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js "></script>
<script type="text/javascript">
    var vm = new Vue({
        el: '#app',
        data: {

        },
        methods: {
          toCertification:function(){
            // 认证不成功结果弹窗
            api.alert({
                title: '格式错误',
                msg: '身份证格式不正确，请输入正确的18位身份证号码。',
            }, function(ret, err){
                if( ret ){
                     alert( JSON.stringify( ret ) );
                }else{
                     alert( JSON.stringify( err ) );
                }
            });

          }

        }
    });
    apiready = function() {
        api.parseTapmode();
    };
</script>

</html>
